﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IBupro.Models.StudentPlanModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Create
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2><%:Html.Translate("newStudentPlan") %></h2>

    <% using (Html.BeginForm()) {%>
        <%: Html.ValidationSummary(true) %>

        <fieldset>
                    
           <div class="editor-label">
                <%:Html.Translate("name") %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Name) %>
                <%: Html.ValidationMessageFor(model => model.Name) %>
            </div>

            <div class="editor-label">
                <%:Html.Translate("shortcut") %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Shortcut) %>
                <%: Html.ValidationMessageFor(model => model.Shortcut) %>
            </div>

            <div class="editor-label">
               <%:Html.Translate("studentFields")%>

            </div>
            <div class="editor-field">
                <%: Html.ListBox("SelectedFields", Model.MultiSelectListStudentFields(), new { @class = "select" })%>
            </div>


            <div class="editor-label">
               <%:Html.Translate("subjects")%>
            </div>
            <div class="editor-field">
 
                <%: Html.ListBox("SelectedSubjects", Model.MultiSelectListSubjects(), new { @class = "select" })%>
            </div>

            <p>
                <input type="submit" value="<%:Html.Translate("create")%>" />
            </p>
        </fieldset>

    <% } %>

</asp:Content>

